/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fait.ferm.ui;

import com.sai.javafx.calendar.FXCalendar;
import fait.ferm.global.Glob;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.StackPane;

/**
 *
 * @author alex
 */
public class DogovorDialogController implements Initializable {
	@FXML
	private StackPane dialogWindow;
	@FXML
	private GridPane grid;

	private FXCalendar dateBeg;	
	

	@Override
	public void initialize(URL url, ResourceBundle rb) {
		addCalendar();
	}
	
		@FXML
    private void dialogWindowCloseClick() {
        //TODO
        dialogWindow.getChildren().clear();
		Glob.dialogPane.toBack();
    }
		
	private void addCalendar() {
//		Image im = new Image(getClass().getResourceAsStream("res/calendar.png"));

		dateBeg = new FXCalendar();
		dateBeg.setValue(Glob.getGame().current_date);
		grid.add(dateBeg, 1, 5);
		//GridPane.
		
	}

}
